<!--[if lt IE 7]>
<p class = "chromeframe">You are using an <strong>outdated</strong> browser. Please <a href = "http://browsehappy.com/">upgrade
                                                                                                                        your
                                                                                                                        browser</a>
                         or <a href = "http://www.google.com/chromeframe/?redirect=true">activate Google Chrome
                                                                                         Frame</a> to improve your
                         experience.</p>
<![endif]-->

<?php
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_bet_calculators.php';
?>
<!-- Navigation & Logo-->
<div class = "mainmenu-wrapper">
    <div class = "container">
        <div class = "menuextras">
            <div class = "extras">
                <ul>
                    <?php
                        if (!empty($_SESSION['user_login'])) {
                            $user = "logined";
                        } else {
                            $user = null;
                        }
                        //                        $user = filter_input(INPUT_SESSION, 'user_login');
                        if ($user != null) {
                            ?>
                            <li>
                                <?php $user = $_SESSION['user_info']; ?>
                                Balance: <b>$ <?php echo api_bet_calculators::get_balance($user['username']); ?></b>
                            </li>
                        <?php
                        }
                    ?>
                    <li>
                        <div class="dropdown choose-country">
                            <a class="#" data-toggle="dropdown" href="#"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>/flags/us.png" alt="United States">
                                US</a>
                            <ul class="dropdown-menu" role="menu">
                                <li role="menuitem">
                                    <a href="#"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>flags/ru.png" alt="Germany">
                                        RU</a></li>
                            </ul>
                        </div>
                    </li>
                    <?php
                        if ($user != null) {
                            ?>
                            <li><a href="#">Hi, <?php echo $_SESSION['user_info']['username']; ?></a></li>
                            <li><a href="<?php echo LINK_ROOT; ?>/logout.php">Logout</a></li>
                        <?php } else { ?>
                            <li><a href="<?php echo LINK_ROOT; ?>/login.php">Login</a></li>
                            <li><a href="<?php echo LINK_ROOT; ?>/register.php">Register</a></li>
                        <?php
                        } ?>
                </ul>
            </div>
        </div>
        <nav id = "mainmenu" class = "mainmenu">
            <ul>
                <li class = "logo-wrapper">
                    <a href = "index.php"><img src = "<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>admin-logo.png" alt = "Multipurpose Twitter Bootstrap Template" height = "50px"></a>
                </li>
                <li class = "active">
                    <a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'index.php' ?>">Home</a>
                </li>
                <li class = "dropdown">
                    <a href = "" class = "dropdown-toggle" data-toggle = "dropdown">Matches
                        <b class = "caret"></b></a>
                    <ul class = "dropdown-menu">
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'matches.php' ?>">Matches</a></li>
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'industries.php' ?>">Industries</a></li>
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'choices.php' ?>">Choices</a></li>
                    </ul>
                </li>

                <li class = "dropdown">
                    <a href = "" class = "dropdown-toggle" data-toggle = "dropdown">Affiliate
                        <b class = "caret"></b></a>
                    <ul class = "dropdown-menu">
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'affiliate_approve_form.php' ?>">Approve Register Form</a></li>
                        <li><a href="<?php echo LINK_ROOT . DIR_ADMIN . 'affiliate_priviledge.php' ?>">Affiliate Priviledge</a></li>
                    </ul>
                </li>

                <li class = "dropdown">
                    <a href = "" class = "dropdown-toggle" data-toggle = "dropdown">Configuration
                        <b class = "caret"></b></a>
                    <ul class = "dropdown-menu">
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'email_activation.php' ?>">Email Activation</a></li>
                        <li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'balance_adjustment.php' ?>">Balance Adjustment (for testing)</a></li>
                        <!--<li><a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'choices.php' ?>">Choices</a></li>-->
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="" class="dropdown-toggle" data-toggle="dropdown">Commission
                        <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo LINK_ROOT . DIR_ADMIN . 'betting_commission.php' ?>">Betting Commission</a></li>
                        <li><a href="<?php echo LINK_ROOT . DIR_ADMIN . 'affiliate_commission.php' ?>">Affiliate
                                                                                                       Commission</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href = "<?php echo LINK_ROOT . DIR_ADMIN . 'roulette.php' ?>">Roulette</a>
                </li>
            </ul>
        </nav>
    </div>
</div>
